<?php
/**
 * File: cmstagsrelation.php.
 * Author: caoqicheng@haibao.com
 * Editor: PhpStorm
 * Date: 17/2/8 上午10:45
 * Brief:
 */
namespace haibao\jiepai\model\data\tag;

class CmsTagsRelation extends \haibao\jiepai\model\data\Base{
	
	/**
	 * Tag与Tag2的关系。>为主从关系，<为从主关系，=为等价关系，≈为相关关系,∽为多媒体相关关系
	 */
	const LEVEL_GREATER_THAN = '>';
	const LEVEL_LESSER_THAN = '<';
	const LEVEL_EQUAL = '=';
	const LEVEL_APPROXIMATELY_EQUAL = '≈';
	const LEVEL_SIMILAR = '~';
	
	public $TagID;

	public $RelationID;
	
	public $RelationLevel;
	
	public $TagID2;
	
	public $Weight;
	
	
	
	public function __construct(){
		parent::__construct();

		$this->intField('TagID', 'TagID');
		$this->intField('RelationID', 'RelationID');
		$this->stringField('RelationLevel', 'RelationLevel');
		$this->intField('TagID2', 'TagID2');
		$this->intField('Weight', 'Weight');
		
		$this->setTableName('cms_tags_relation');
	}
}